Knowledge Base

How to install Blesta on Centos 8

Ensure you have Centos 8 and upgrade the system with the following:
yum upgrade -y

Need to install the repos:

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf config-manager --set-enabled PowerTools

Then enable the remi.repo:
nano -w /etc/yum.repos.d/remi.repo

put enabled=0 to enabled=1 under [remi]

Next let's install PHP:
yum install php-* --skip-broken -y

It will say under php -v it's PHP 7.2.24 we want PHP 7.3 so let's upgrade that.

dnf module reset php
dnf module enable php:remi-7.3
dnf update php\*

If that doesn't work run: yum install php-* --enablerepo=remi --skip-broken -y

Let's do Ioncube loaders:

wget -N -4 https://blesta.store/ioncube.sh;chmod 700 ./ioncube.sh;./ioncube.sh auto

Next we need to disable SELinux (Security-Enhanced Linux):
nano /etc/selinux/config and if that fails use: cd /etc/selinux/ && nano config and then ensure it is disabled by SELINUX=disabled

Time to install Apache:

dnf install httpd wget unzip -y
systemctl enable httpd.service
systemctl start httpd.service

nano -w /etc/httpd/conf/httpd.conf

Find (Ctrl + W): <Directory "/var/www/html">
Find AllowOverride None and set it to: AllowOverride All

Now we need to reboot Apache to load our changes:
service httpd restart

Now to install MariaDB:

dnf install mariadb-server
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation

Let's get ready to install PHPMyAdmin: dnf install php php-pdo php-pecl-zip php-json php-mbstring php-mysqlnd

Get the files:

wget https://files.phpmyadmin.net/phpMyAdmin/5.0.1/phpMyAdmin-5.0.1-all-languages.zip
unzip phpMyAdmin-5.0.1-all-languages.zip
mv phpMyAdmin-5.0.1-all-languages /usr/share/phpmyadmin

Make a temp folder:

mkdir /usr/share/phpmyadmin/tmp
chown -R apache:apache /usr/share/phpmyadmin
chmod 777 /usr/share/phpmyadmin/tmp

Time to make the configuration:
nano /etc/httpd/conf.d/phpmyadmin.conf

Add the following:

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin/>
   AddDefaultCharset UTF-8
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
      Require all granted
     </RequireAny>
   </IfModule>
</Directory>

<Directory /usr/share/phpmyadmin/setup/>
   <IfModule mod_authz_core.c>
 # Apache 2.4
     <RequireAny>
       Require all granted
     </RequireAny>
   </IfModule>
</Directory>

Reboot apache: systemctl restart httpd.service

Please rate this article to help us improve our Knowledge Base.

0 0